﻿<%@ Page Title="Book Search" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2>
      Book search
    </h2>
    <p>
        Book Search
        <asp:TextBox ID="searchText" runat="server"></asp:TextBox>
        <asp:Button ID="searchButton" runat="server" onclick="searchButton_Click" 
            Text="Search" Width="135px" />
    </p>
<!--
         <HeaderStyle BackColor="#aaaadd">
         </HeaderStyle> 
         <AlternatingItemStyle BackColor="Gainsboro">
         </AlternatingItemStyle>-->
    <center>
    <asp:DataList id="searchResultList" runat="server"
           BorderColor="black"
           CellPadding="3"
           Font-Names="Verdana"
           Font-Size="8pt" Width="858px">


 
         <HeaderTemplate>
         <tr>
            <th>
                <div style="background-color: #ADAAB1; color: #E3E2E7; padding: 5px; font-size: x-small;">
                    Vendor</div>
            </th>
            <th>
                <div style="background-color: #ADAAB1; color: #E3E2E7; padding: 5px; font-size: x-small;">
                    Book</div>
            </th>
            <th>
                <div style="background-color: #ADAAB1; color: #E3E2E7; padding: 5px; font-size: x-small;">
                    Author</div>
            </th>
            <th>
                <div style="background-color: #ADAAB1; color: #E3E2E7; padding: 5px; font-size: x-small;">
                    Void</div>
            </th>
            <th>
                <div style="background-color: #ADAAB1; color: #E3E2E7; padding: 5px; font-size: x-small;">
                    Void</div>
            </th>
            <th>
                <div style="background-color: #ADAAB1; color: #E3E2E7; padding: 5px; font-size: x-small;">
                    Void</div>
            </th>
            <th>
                <div style="background-color: #ADAAB1; color: #E3E2E7; padding: 5px; font-size: x-small;">
                    Void</div>
            </th>
            <th>
                <div style="background-color: #ADAAB1; color: #E3E2E7; padding: 5px; font-size: x-small;">
                    Void</div>
            </th>
        </tr>
            
         </HeaderTemplate>

         <ItemTemplate>
           <tr>
            <th>
                   <%# DataBinder.Eval(Container.DataItem, "Vendor")%>
            </th>
            <th>
                   <%# DataBinder.Eval(Container.DataItem, "BookName")%>
            </th>
            <th>
                   <%# DataBinder.Eval(Container.DataItem, "BookAuthor")%>
            </th>
            <th>

            </th>
            <th>

            </th>
            <th>

            </th>
            <th>

            </th>
            <th>
       
            </th>
        </tr>
      </ItemTemplate>

      </asp:DataList>
      </center>
</asp:Content>
